﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Routing;

namespace mal.Web.Routing.WebTest
{
    public partial class _Default : LocalizedPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            foreach (var item in PageRouteHandler.QueryString)
            {
                lblQueryString.Text += item.Key + " : " + item.Value + "<br />";
            }

            //Response.Write(RouteTable.Routes.GetVirtualPath(null, "url1", null).VirtualPath + "<br />");
            //Response.Write(RouteTable.Routes.GetVirtualPath(null, "url2"
            //    , new RouteValueDictionary { { "culture", "en-us" } }).VirtualPath + "<br />");
            //Response.Write(RouteTable.Routes.GetVirtualPath(null, "url2"
            //    , new RouteValueDictionary(new { culture = "en-GB" })).VirtualPath + "<br />");
            //Response.Write(RouteTable.Routes.GetVirtualPath(null, "url2"
            //    , new RouteValueDictionary()).VirtualPath + "<br />");

            //Response.Write(RouteTable.Routes.GetVirtualPath(null, "url1", new RouteValueDictionary { }).VirtualPath + "<br />");
           // Response.Write(RouteTable.Routes.GetVirtualPath(null, "url2", null).VirtualPath + "<br />");
            //Response.Write(RouteTable.Routes.GetVirtualPath(null, "url3", new RouteValueDictionary { }).VirtualPath + "<br />");
        }
    }
}
